package com.example.demo.SinglePattern;

/**
 * @author gyq
 * @description 单例模式 饿汉模式
 * @datetime 2019/2/23 19:40
 */
public class SingleHungryPattern {
    private static SingleHungryPattern singleHungryPatterns = new SingleHungryPattern();

    private SingleHungryPattern() {
    }

    public static SingleHungryPattern getInstance() {
        return singleHungryPatterns;
    }
}
